<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>演示文档</title>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<script type="text/javascript" src="__JS__/jquery.min.js"></script>
	<script type="text/javascript" src="__JS__/admin.js"></script>

	<!-- Bootstrap -->
	<link href="__THIRD__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<!-- HTML5 Shim and Respond.js IE8 flowers of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	<script src="__THIRD__/bootstrap/js/bootstrap.min.js"></script>

	<!-- multi_menu -->
	<script type="text/javascript" src="__THIRD__/multi_menu/accordion.js"></script>

	<!-- arttemplate -->
	<script type="text/javascript" src="__THIRD__/artTemplate/template.js"></script>

	<!-- artDialog -->
	<link rel="stylesheet" type="text/css" href="__THIRD__/artDialog/skins/default.css">
	<script type="text/javascript" src="__THIRD__/artDialog/jquery.artDialog.js"></script>
	<script type="text/javascript" src="__JS__/artDialog.ext.js"></script>

	<!-- 引入百度编辑器 -->
	<script type="text/javascript" src="__THIRD__/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__THIRD__/ueditor/ueditor.all.js"></script>
	<!-- 引入webuploader -->
	<link rel="stylesheet" type="text/css" href="__THIRD__/webuploader/webuploader.css">
	<script type="text/javascript" src="__THIRD__/webuploader/webuploader.nolog.min.js"></script>
	<!-- 引入iconfont -->
	<link href="__THIRD__/iconfont/iconfont.css" rel="stylesheet">
	<!-- 引入后台样式表 -->
	<link rel="stylesheet" type="text/css" href="__CSS__/admin.css">
	<script type="text/javascript" src="__JS__/template.helper.js"></script>
	<script type="text/javascript">
		$(function(){
			/*百度编辑器默认配置*/
			window.UEDITOR_CONFIG.initialFrameHeight = '300';
			window.UEDITOR_CONFIG.zIndex = '9999';
			window.UEDITOR_CONFIG.initialFrameWidth = 'auto';
			window.UEDITOR_CONFIG.UEDITOR_HOME_URL = '__THIRD__/ueditor/';
			window.UEDITOR_CONFIG.serverUrl = '{:U('Admin/Index/ueditor')}';

			Namespace.register("EBCMS.{$namespace}");
			EBCMS.{$namespace}.asyncdata = function asyncdata(){
				$.post('{:U('index')}', {__api:'asyncdata'}, function(data){
					if (data.status) {
						EBCMS.DATA = data.info;
					}else{
						EBCMS.MSG.alert(data.info);
					};
				});
			};
			EBCMS.{$namespace}.runtime = function runtime(msg){
				$.post('{:U('runtime')}', {}, function(data){
					if (data.status) {
						if (msg) {
							EBCMS.MSG.tips('系统缓存已更新！');
						};
					}else{
						EBCMS.MSG.alert(data.info);
					};
				});
			};
			EBCMS.{$namespace}.config = function config(){
				EBCMS.CORE.get({
					url:'{:U('index?tpl=config')}',
					target:'#main',
				});
			};
			EBCMS.{$namespace}.asyncdata();
			EBCMS.CORE.api({
				url:'{:U('index')}',
				queryParams:{
					__api:'mymenu',
				},
				tpl:'left_nav',
				target:'#left-nav',
				compileAfter:function(p){
					$(".leftnav").accordion({
						accordion: true,
						speed: 100,
						closedIcon: 'glyphicon glyphicon-plus',
						openedIcon: 'glyphicon glyphicon-minus'
					});
				}
			});
			EBCMS.{$namespace}.password = function password(){
				EBCMS.CORE.get({
					url:'{:U('password')}',
					target:'#lgModal .modal-content',
				});
			};
		});
	</script>
</head>
<body>
	<div class="header" style="height:50px;padding:0px;">
		<nav class="navbar navbar-static-top navbar-default navbar-inverse" style="margin-bottom:0;">
			<div class="container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="http://www.ebcms.com" target="_blank"><b>易贝<sup>®</sup>内容管理系统</b></a>
				</div>

				<div class="collapse navbar-collapse" id="navbar-collapse">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="javascript:EBCMS.{$namespace}.config();">系统配置</a></li>
						<li><a href="javascript:EBCMS.{$namespace}.runtime(1);">清理系统缓存</a></li>
						<li><a href="{:U('Home/Index/index')}" target="_blank">前台</a></li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><b>{$nickname}</b> <span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="javascript:EBCMS.{$namespace}.password();">修改密码</a></li>
								<li role="separator" class="divider"></li>
								<li><a href="{:U('Auth/logout')}">退出</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</nav>
	</div>
	<div class="body" style="top:50px;padding:0px;bottom:25px;">
		<div class="layout">
			<div class="layout-left" style="margin-right:-180px;width:180px;background:#222;">
				<div id="left-nav" class="box"></div>
				<script id="left_nav" type="text/html">
					<ul class="leftnav">
						{{include 'nav_item'}}
					</ul>
				</script>
				<script id="nav_item" type="text/html">
					{{each rows as v n}}
						<li>
						{{if v.rows}}
							<a href="#"><i class="{{v.iconcls}}"></i> {{v.title}}</a>
							<ul>
							{{include 'nav_item' v}}
							</ul>
						{{else}}
							<a href="javascript:EBCMS.CORE.changemain('{{v.url}}');"><i class="{{v.iconcls}}"></i> {{v.title}}</a>
						{{/if}}
						</li>
					{{/each}}
				</script>
			</div>
			<div class="layout-rightbox">
				<div class="layout-right" style="height:100%;overflow:auto;margin-left:180px;">
					<div id="main" class="box">
						<include file='main'/>
					</div>
					<div id="main_edit" class="box" style="display: none;"></div>
				</div>
			</div>
		</div>
	</div>
	<div class="footer" style="height:25px;padding:0px;">
		<div style="height:23px;text-align:right;line-height:23px;margin:0px;">2014-2016 四川易贝网络科技有限公司. 版权所有&nbsp;&nbsp;</div>
	</div>
	<!-- 三个模态框 -->
	<div class="modal fade" id="lgModal" data-backdrop="static" tabindex="-1">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">

			</div>
		</div>
	</div>
	<div class="modal fade" id="mdModal" data-backdrop="static" tabindex="-1">
		<div class="modal-dialog">
			<div class="modal-content">
				
			</div>
		</div>
	</div>
	<div class="modal fade" id="smModal" data-backdrop="static" tabindex="-1">
		<div class="modal-dialog modal-sm">
			<div class="modal-content">
				
			</div>
		</div>
	</div>
	<!-- //三个模态框 -->
</body>
</html>